package com.grj.parkingsystem.enums;

public enum SpaceStatus {
    AVAILABLE(0, "空闲"),
    OCCUPIED(1, "已占用"),
    MAINTENANCE(2, "维修中");

    private final int code;
    private final String desc;

    SpaceStatus(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}    